package com.wang.users.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.wang.users.pojo.AtIntersection;
import com.wang.users.pojo.AtIntersectionQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 针对表 路口表 的数据库操作Mapper
 *
 * @author ZjxMi
 */
@Mapper
public interface AtIntersectionMapper extends BaseMapper<AtIntersection> {

    /**
     * 查询多条记录
     *
     * @param page
     * @param query
     * @return 集合
     */
    List<AtIntersection> findList(IPage<AtIntersection> page, @Param("param") AtIntersectionQuery query);

    /**
     * 查询全部(不分页)
     *
     * @param query
     * @return
     */
    List<AtIntersection> findList(@Param("param") AtIntersectionQuery query);

    /**
     * 查询一条记录
     *
     * @param query 查询对象
     * @return 返回结果
     */
    AtIntersection findOne(@Param("param") AtIntersectionQuery query);

    /**
     * 批量删除
     *
     * @param query
     * @return
     */
    int deleteBatch(@Param("param") AtIntersectionQuery query);

    /**
     * 批量更新
     *
     * @param query
     * @return
     */
    int updateBatch(@Param("param") AtIntersectionQuery query);
}